<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
        <circle id="mycircle" cx="50" cy="50" r="50" />
    </svg>

<script>
    document.getElementById('mycircle').onclick = function(){
        console.log(this);
    }
</script>
</body>
</html>